package com.celi.scs.common.dao;

import com.celi.system.entity.*;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface SystemMapper {

    Dept findLevel1Dept(String level1DeptCode);

    List<User> listUserDeptByDeptIds(List<String> list);

    List<Dept> listDeptChargers();

    List<String> listUsersByDept(Dept dept);

    List<UserDept> listDeptByUserIds(List<String> userIds);

    List<Permission> listPermissionByUserIdAndPermission(@Param("userId") String userId, @Param("list") List<String> permissionCodeList);
}